<?   
	$arrListValue = '';
	if($this->element->arrListValue){
		$arrListValue = $this->element->arrListValue;
	}
	$arrOption = $this->element->option;
	$label = $arrOption['label'];
	$htmlLabel = '';
	if ($label) {
		$htmlLabel .= '<div>';
		$htmlLabel .= '<label for="'.$this->element->getId().'" '.Clound_Public::getInstance()->_htmlAttribs($arrOption['labeloptions']).'>'.$label.'</label>';
		$htmlLabel .= '</div>';
	}
	unset($arrOption['label']);
	unset($arrOption['labeloptions']);
	unset($arrOption['blockoptions']);
	unset($arrOption['value']);
	$shtml = Clound_Public::getInstance()->_htmlAttribs($arrOption);
?>
<div class="datatable_block" id="block_<?=$this->element->getId();?>">
	<?=$htmlLabel;?>
    <!-- Redirect browsers with JavaScript disabled to the origin page -->
    <noscript><input type="hidden" name="redirect" value=""></noscript>
	<input type="hidden" name="<?=$this->element->getName();?>" id="<?=$this->element->getId();?>" <?=$shtml;?>>
    <div class="datatable_data">
		<table id="table_<?=$this->element->getId();?>" class="list-table-data">
			<col width = '15%'><col width = '15%'><col width = '20%'><col width = '45%'><col width = '5%'>
			<tr class='header'>
				<td>Tờ bản đồ số</td><td>Thửa đất số</td><td>Diện tích (m2)</td><td>Nội dung thay đổi khác</td><td>Tác vụ</td>
			</tr>
			<tr class='row_input'>
				<td><textarea class="data_textarea" style="min-width: 92%; width: 92%; max-width: 92%;" name="input_add[]" rows="1" title="Tờ bản đồ số"  ></textarea></td>
				<td><textarea class="data_textarea" name="input_add[]" rows="1" title="Thửa đất số" style="min-width: 92%; width: 92%; max-width: 92%;" ></textarea></td>
				<td><textarea class="data_textarea" name="input_add[]" rows="1" title="Diện tích (m2)" style="min-width: 92%; width: 92%; max-width: 92%;" ></textarea></td>
				<td><textarea class="data_textarea" name="input_add[]" rows="1" title="Nội dung thay đổi khác" style="min-width: 92%; width: 92%; max-width: 92%;" ></textarea></td>
				<td><button type="button" class="btn btn-add-decorators" onclick="thongtinbiendong.add_item();">&crarr;</button></td>
			</tr>
		</table>
    </div>
</div>
<script type="text/javascript">
	var thongtinbiendong = new Js_GeneralItem({
		input_id: '<?=$this->element->getId();?>',
		input_select: 'textarea[name^=input_add]',
		block: $('#block_<?=$this->element->getId();?>'),
		defaultValue: '<?=$arrListValue?>',
		columns: ['tobandoso', 'thuadatso', 'dientich','noidungthaydoi']
	});	
</script>